package com.eastfair.pay.vo;

import com.eastfair.pay.enumeration.ChinaumsLogRequestTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import java.io.Serializable;
import com.eastfair.vo.BaseVO;

/**
 * <p>
 * 实体类
 * 调用银联日志
 * </p>
 *
 * @author linan
 * @since 2023-05-05
 */
@Data
@ApiModel(value = "ChinaumsLogVO", description = "调用银联日志")
public class ChinaumsLogVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 业务单号
     */
    @ApiModelProperty(value = "业务单号")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "业务单号长度不能超过255")
    private String orderNum;
    /**
     * 是否调用成功：1是；0否
     */
    @ApiModelProperty(value = "是否调用成功：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isSuccess;
    /**
     * 请求url
     */
    @ApiModelProperty(value = "请求url")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 1000, message = "请求url长度不能超过1000")
    private String requestUrl;
    /**
     * 授权
     */
    @ApiModelProperty(value = "授权")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "授权长度不能超过255")
    private String auth;
    /**
     * 认证报文
     */
    @ApiModelProperty(value = "认证报文")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "认证报文长度不能超过255")
    private String signature;
    /**
     * 请求参数
     */
    @ApiModelProperty(value = "请求参数")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 65535, message = "请求参数长度不能超过65,535")
    private String requestParameter;
    /**
     * 响应结果
     */
    @ApiModelProperty(value = "响应结果")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 65535, message = "响应结果长度不能超过65,535")
    private String responseResults;
    /**
     * 银联下单单号
     */
    @ApiModelProperty(value = "银联下单单号")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "银联下单单号长度不能超过255")
    private String merOrderId;
    /**
     * 银联退款单号
     */
    @ApiModelProperty(value = "银联退款单号")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "银联退款单号长度不能超过255")
    private String refundOrderId;
    /**
     * 付款金额
     */
    @ApiModelProperty(value = "付款金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long totalAmount;
    /**
     * 退款金额
     */
    @ApiModelProperty(value = "退款金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long refundAmount;
    /**
     * 请求类型 #{PAY:下单支付;QUERY:查询;REFUND:退款}
     */
    @ApiModelProperty(value = "请求类型 #{PAY:下单支付;QUERY:查询;REFUND:退款}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ChinaumsLogRequestTypeEnum requestType;
    /**
     * 二维码地址
     */
    @ApiModelProperty(value = "二维码地址")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String billQRCode;
    /**
     * 小程序支付请求
     */
    @ApiModelProperty(value = "小程序支付请求")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String miniPayRequest;
    /**
     * 是否已支付
     */
    @ApiModelProperty(value = "是否已支付")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer hasPay;
}
